package Mangos::DB::Mangos::InstanceTemplate;

use strict;

use base qw(Mangos::DB::Mangos);

__PACKAGE__->meta->setup
(
    table   => 'instance_template',

    columns => 
    [
        map       => { type => 'integer', not_null => 1 },
        parent    => { type => 'integer', not_null => 1 },
        levelMin  => { type => 'integer', default => '0', not_null => 1 },
        levelMax  => { type => 'integer', default => '0', not_null => 1 },
        startLocX => { type => 'float', precision => 32 },
        startLocY => { type => 'float', precision => 32 },
        startLocZ => { type => 'float', precision => 32 },
        startLocO => { type => 'float', precision => 32 },
        script    => { type => 'varchar', default => '', length => 128, not_null => 1 },
    ],

    primary_key_columns => [ 'map' ],
);

1;

package Mangos::DB::Mangos::InstanceTemplate::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Mangos::InstanceTemplate' }

__PACKAGE__->make_manager_methods('instance_template');

1;
